// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.Platformshipping;
import com.fowo.api.model.platformshipping.PlatformshippingItemVo;
import com.fowo.api.model.platformshipping.PlatformshippingSearchParamPo;
import com.fowo.api.model.platformshipping.PlatformshippingVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PlatformshippingMapper extends BaseMapper<Platformshipping> {
  Page<PlatformshippingItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  List<OptionItem<PlatformshippingItemVo>> searchOptions(
    @Param("search") PlatformshippingSearchParamPo search
  );
  List<PlatformshippingItemVo> search(
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") PlatformshippingSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") PlatformshippingSearchParamPo search);
  Long getIdByShipmentCode(@Param("shipmentCode") String shipmentCode);

  List<Long> getIdsByShipmentCode(@Param("list") List<String> list);

  String getShipmentCodeById(@Param("id") Long id);

  List<Map<String, Object>> getShipmentCodeByIds(@Param("ids") List<Long> ids);
  PlatformshippingVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<PlatformshippingItemVo> allData(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allDataIds(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allDataCount(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 全部分页
   */
  Page<PlatformshippingItemVo> allDataPage(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date allDataLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
  /**
   * 待配货
   */
  List<PlatformshippingItemVo> waitingDistribution(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取待配货编号列表
   */
  List<Long> waitingDistributionIds(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取待配货的总数
   */
  Long waitingDistributionCount(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 待配货分页
   */
  Page<PlatformshippingItemVo> waitingDistributionPage(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date waitingDistributionLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
  /**
   * 待发货
   */
  List<PlatformshippingItemVo> tobeShipped(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取待发货编号列表
   */
  List<Long> tobeShippedIds(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取待发货的总数
   */
  Long tobeShippedCount(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 待发货分页
   */
  Page<PlatformshippingItemVo> tobeShippedPage(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date tobeShippedLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
  /**
   * 已发货
   */
  List<PlatformshippingItemVo> shipped(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取已发货编号列表
   */
  List<Long> shippedIds(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 获取已发货的总数
   */
  Long shippedCount(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 已发货分页
   */
  Page<PlatformshippingItemVo> shippedPage(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date shippedLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
  /**
   * 已作废
   */
  List<PlatformshippingItemVo> cancellation(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取已作废编号列表
   */
  List<Long> cancellationIds(
    @Param("search") PlatformshippingSearchParamPo search
  );

  /**
   * 获取已作废的总数
   */
  Long cancellationCount(@Param("search") PlatformshippingSearchParamPo search);

  /**
   * 已作废分页
   */
  Page<PlatformshippingItemVo> cancellationPage(
    @Param("page") Page page,
    @Param("search") PlatformshippingSearchParamPo search
  );
  Date cancellationLastUpdateTime(
    @Param("search") PlatformshippingSearchParamPo search
  );
}
